package com.kaikeba.servlet.handler.adapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.kaikeba.servlet.handler.UserDelHandler;

public class UserDelAdapeter extends UserDelHandler implements HandlerAdapter{

	@Override
	public void dohandlerRequest(Object handler,HttpServletRequest req, HttpServletResponse resp) {
		if(handler instanceof UserDelHandler){
			((UserDelHandler) handler).delUser(req, resp);
		}
	}

	@Override
	public boolean isSuport(Object handler) {
		if(handler instanceof UserDelHandler){
			return true;
		}
		return false;
	}

}
